#ifndef ATCLIENT_H
#define ATCLIENT_H

#include <QObject>
#include "serial.h"
#include <QTimer>

class AtClient : public QObject
{
    Q_OBJECT
public:
    explicit AtClient(const char *com, int updateInterval = 10, QObject *parent = nullptr);

signals:

public slots:
    void onFrameIn(const QByteArray &data);\
    void onUpdate();

private:
    Serial *serial;
    QTimer *updateTimer;
};

#endif // ATCLIENT_H
